package com.jinhua.medical.manager.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * Created by kriss on 2017/5/24.
 * <p>
 * 封装json 结果
 */
@ApiModel(value = "返回结果对象", description = "结果对象")
public class JSONResult {

    @ApiModelProperty(value = "结果编码", name = "resultCode", example = "10000 表示正常，10001表示异常")
    private String resultCode;
    @ApiModelProperty(value = "结果消息", name = "resultMsg", example = "保存成功")
    private String resultMsg;

    private Object data;

    public JSONResult(String resultCode, String resultMsg, Object data) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
        this.data = data;
    }

    public JSONResult() {

    }

    public JSONResult(String resultCode, String resultMsg) {
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }


    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
